﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using FortuneCat.Domain.Entities;

namespace FortuneCat.Domain.Concrete {
    public class EFDbContext : DbContext {
        public DbSet<User> Users { get; set; }
        public DbSet<Balance> Balances { get; set; }

        //protected override void OnModelCreating(DbModelBuilder modelBuilder) {
        //    modelBuilder.Entity<Balance>().HasRequired(x => x.User).WithMany().HasForeignKey(x => x.UserId);

        //    base.OnModelCreating(modelBuilder);
        //}
    }
}
